import { createStore } from 'vuex'
export default createStore({
    state: {
        list:[]
    },
    mutations: {
        add(state,val){
            state.list.push({
                title:val,
                checked:false,
                flag:false
            })
        },
        del(state,i){
            state.list.splice(i,1)
        },
        changeCheck(state,i){
            
            console.log(state.list[i].checked);
        },
    },
    getters: {},
    actions: {},
    modules: {}
})